//
//  UIView+buttonView.h
//  Gunterapple
//
//  Created by 热带雨林 on 2021/2/3.
//  Copyright © 2021 热带雨林. All rights reserved.
//




#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN


@protocol UIViewGDButtonDelegate <NSObject>

- (void)clickButtonWithTag:(NSInteger)tag;
- (void)clickButtonWithButton:(UIButton *)sender;

@end

@interface UIView (buttonView)

/**
 添加没有图片的按钮数组
 */
- (void)creatNormalButtonWithTitleArray:(NSArray <NSString *>*)titleArray withRect:(void(^)(CGRect rect))rect;
/**
 添加有图片的按钮数组
 */

- (void)creatGDButtonWithArray:(NSArray <GDButton *>*)array;

///**
// 自定义视图的按钮点击响应代理  需要自己添加代理的方法set get的实现
// */
@property (nonatomic, weak) id<UIViewGDButtonDelegate>delegate;

@end

NS_ASSUME_NONNULL_END
